package com.xiaomi.mapper;

import com.xiaomi.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName OrderMapper
 * @Description TODO
 * @Author WL
 * @Date 2021/11/28 21:02
 * @Version 1.0
 **/
public interface OrderMapper {
    /**
     * @MethodName listSearch
     * @Description TODO
     * @Param name
     * @Param startRow
     * @Param limit
     * @Return [java.lang.String, java.lang.Integer, java.lang.Integer]
     * @Author WL
     * @Date 2021/11/28 20:59
     **/
    List<Order> selectType(Integer did);

    /**
     * @MethodName getCount
     * @Description TODO
     * @Param name
     * @Return [java.lang.String]
     * @Author WL
     * @Date 2021/11/28 20:59
     **/
//    Integer getCount(@Param("name") String name) throws Exception;

    /**
     * @MethodName insert
     * @Description TODO
     * @Param name
     * @Param iamg
     * @Param quantity
     * @Param guige
     * @Param price
     * @Param purchase
     * @Param address
     * @Param sku_id
     * @Return [java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.math.BigDecimal, java.util.Date, java.lang.String, java.lang.Integer]
     * @Author WL
     * @Date 2021/11/28 20:59
     **/
    void insert(@Param("name") String name,
                @Param("iamg") String iamg,
                @Param("quantity") Integer quantity,
                @Param("guige") String guige,
                @Param("price") BigDecimal price,
                @Param("purchase") String purchase,
                @Param("address") String address,
                @Param("sku_id") Integer sku_id) throws Exception;

    /**
     * @MethodName delete
     * @Description TODO
     * @Param id
     * @Return [java.lang.Integer]
     * @Author WL
     * @Date 2021/11/28 21:00
     **/
    void delete(@Param("id") Integer id) throws Exception;
}
